package com.dao.green.cn.chengpig;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ac_main);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.ac_test01:
                startActivity(new Intent(this, HomeActivity.class));
                break;
            case R.id.ac_test02:
                startActivity(new Intent(this, Demo03.class));
                break;
        }
    }
}
